package com.zzjson.design.strategy.promotion;


/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : cn.zzjson.design.strategy</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年03月26日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
public class PromotionActivityTest {
    //public static void main(String[] args) {
    //    PromotionActivity promotionActivity = null;
    //    String promotionKey = "COUPON";
    //    if (StringUtils.equals(promotionKey, "COUPON")) {
    //        promotionActivity = new PromotionActivity(new CouponStrategy());
    //    } else if (StringUtils.equals(promotionKey, "CASH")) {
    //        promotionActivity = new PromotionActivity(new CashbackStrategy());
    //    }
    //    promotionActivity.execute();
    //}
    public static void main(String[] args) {
        PromotionStrategy promotionStrategy = PromotionStrategyFactory.getPromotionStrategy("COUPON");
        PromotionActivity promotionActivity = new PromotionActivity(promotionStrategy);
        promotionActivity.execute();

    }
}